#ifndef __Key_h__
#define __Key_h__

#define L1 RB4
#define L2 RB5
#define L3 RB6
#define M1 RA5
#define M2 RA4
#define M3 RB7

#define L1_IO TRISB4
#define L2_IO TRISB5
#define L3_IO TRISB6
#define M1_IO TRISA5
#define M2_IO TRISA4
#define M3_IO TRISB7

#define Row_IO() L1_IO=1;L2_IO=1;L3_IO=1;M3_IO=0;M1_IO=0;M2_IO=0
#define Col_IO() M1_IO=1;M2_IO=1;M3_IO=1;L1_IO=0;L2_IO=0;L3_IO=0
#define Row() M1=0;M2=0;M3=0
#define Col() L1=0;L2=0;L3=0
void KeyProc(void);
#endif // __Key_h__
